package com.itheima;


import com.itheima.controller.BirdController;
import com.itheima.entity.Bird;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class AnnotationTest {
    public static void main(String[] args){
        ApplicationContext applicationContext=new
                ClassPathXmlApplicationContext("applicationContext.xml");
        BirdController bird = (BirdController) applicationContext.getBean("birdController");
        bird.fly();

    }
}
